One popular use of destructuring declarations is when iterating over a Map
.
You can use ()
syntax to get the key and value as separate properties,
rather than getting a single Map.Entry
property.
You can learn more about this in:
Tags: